package com.wfcm.datasource;

public class DataSourceContextHolder {
		  
	    public static final String dataSource_real = "dataSource_real";  
	      
	    public static final String dataSource_play = "dataSource_play";  
	    
	    public static final String dataSource_comment = "dataSource_comment";
	    //本地线程，获取当前正在执行的currentThread  
	    public static final ThreadLocal<String> contextHolder = new ThreadLocal<String>();   
	      
	    public static void setCustomerType(String customerType) {  
	  
	        contextHolder.set(customerType);  
	          
	    }  
	  
	    public static String getCustomerType() {  
	  
	        return contextHolder.get();  
	           
	    }  
	  
	    public static void clearCustomerType() {  
	  
	        contextHolder.remove();  
	      
	    }  
	    
	}
